package collections4;

public class Student {
   private String name,age,card,num;
   public Student() {
	// TODO 自动生成的构造函数存根
}
  
/* （非 Javadoc）
 * @see java.lang.Object#toString()
 */
@Override
public String toString() {
	return "Student [name=" + name + ", age=" + age + ", card=" + card + ", num=" + num + "]";
}

/* （非 Javadoc）
 * @see java.lang.Object#hashCode()
 */
@Override
public int hashCode() {
	final int prime = 31;
	int result = 1;
	result = prime * result + ((age == null) ? 0 : age.hashCode());
	result = prime * result + ((card == null) ? 0 : card.hashCode());
	result = prime * result + ((name == null) ? 0 : name.hashCode());
	result = prime * result + ((num == null) ? 0 : num.hashCode());
	return result;
}

/* （非 Javadoc）
 * @see java.lang.Object#equals(java.lang.Object)
 */
@Override
public boolean equals(Object obj) {
	if (this == obj)
		return true;
	if (obj == null)
		return false;
	if (getClass() != obj.getClass())
		return false;
	Student other = (Student) obj;
	if (age == null) {
		if (other.age != null)
			return false;
	} else if (!age.equals(other.age))
		return false;
	if (card == null) {
		if (other.card != null)
			return false;
	} else if (!card.equals(other.card))
		return false;
	if (name == null) {
		if (other.name != null)
			return false;
	} else if (!name.equals(other.name))
		return false;
	if (num == null) {
		if (other.num != null)
			return false;
	} else if (!num.equals(other.num))
		return false;
	return true;
}

/**
 * @return name
 */
public String getName() {
	return name;
}

/**
 * @param name 要设置的 name
 */
public void setName(String name) {
	this.name = name;
}

/**
 * @return age
 */
public String getAge() {
	return age;
}

/**
 * @param age 要设置的 age
 */
public void setAge(String age) {
	this.age = age;
}

/**
 * @return card
 */
public String getCard() {
	return card;
}

/**
 * @param card 要设置的 card
 */
public void setCard(String card) {
	this.card = card;
}

/**
 * @return num
 */
public String getNum() {
	return num;
}

/**
 * @param num 要设置的 num
 */
public void setNum(String num) {
	this.num = num;
}

/**
 * @param name
 * @param age
 * @param card
 * @param num
 */
public Student(String name, String age, String card, String num) {
	super();
	this.name = name;
	this.age = age;
	this.card = card;
	this.num = num;
}
   
}
